Ruby 1.8.7 bug fix

Issue with type not coming off the active model serlizers object.
Merge pull request #2 from leondewey/master

Ruby 1.8.7 fix