better overload resolution in case of Java primitive parameters