Fixed bug in recursively inheriting validations, added a test for this.