Make .java_class work properly for "real" ifc impls. Fixes #709.