Fix stack overflow error

There is an infinite recursion in the RendererHints. getHintsFor(Object,Class) method. The method is not supposed to be recursive. It also required a cast to prevent compilation errors on the return type because of different generic constraints.

See https://issues.apache.org/jira/browse/BROOKLYN-77.