Fix implementing Java interface methods that return primitive types

We were generating the wrong default return type for a branch of
bytecode that will never get run when implementing Java interfaces but
that still needs to return the correct type, instead of just returning
'null' in all cases.