objects: fixes in JavaSignatureComparator