MyriaUtils: add ensureObjectIsValidType

To check objects that we store in columns or fields
Merge branch 'master' into type-safety-inserts
test ensureObjectIsValidType
Merge pull request #616 from uwescience/type-safety-inserts

MyriaUtils: add ensureObjectIsValidType