Schema checking

Added a few functions for model schema checking, and filters for the
__get and __set functions