Updates setProperty logic to deal properly with properties for generic types.

Signed-off-by: Wes Brown <wes@weslandia.org>