Make sure to raise error on unmatched argument types for register_callable
Fix struct equality testing