RESTWS-403 | Updates setProperty logic to deal properly with generic properties on generic superclasses.

There is some additional discussion here: https://groups.google.com/a/openmrs.org/forum/#!topic/dev/qi3BqoUhcuA