Remove stray 'def' from Serializer template

Based on similar code in heroku/api [here](https://github.com/heroku/api/blob/master/lib/api/serializers/addon_serializer.rb#L6-L20), I think this is a typo.