Merge "macros: Add compile-time checking/inferencing for native method registration"