Fix bug in generating method signatures for Java bridge

The handling of & was incorrect, and resulted in duplicate
method signatures.

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>