Consistent class/association discriminator field parsing in YamlDriver

This adds a common helper method to parse discriminatorField options consistently for classes and associations in YamlDriver. Give precedence to string values, and then check the "name" or "fieldName" keys (in that order) for an array value. Exceptions will be thrown otherwise.

Fixes #657.