Checking that parametrization type is not java.lang.Object (fixes #7).