Allow ids to be either strings or integers

Closes #372
Merge pull request #378 from edpaget/fix-schema-ids

Allow ids to be either strings or integers