Fix #46. Add support for minProperties, maxProperties.