added 'type' attribute to the pg rspec element