Fix uppercase type casting issues

Normalize all types to their lowercase counterpart, this should fix casting problems when initializing schema attributes with uppercase types. This change should close issue #42.

Something to look into would be filtering out all function attributes before they are iterated over by schema/validation/cast objects, but I might be not understand how model functions are accommodated.