Change rules for an element to an array instead of an object so it can correctly be enumerated in order.
Make the rules() method return an array instead of an object.
This ensures consistent enumeration order when checking rules in the check() method.
Also ensure that the 'remote' rule is at the end of the array.