#115 avoid unnecessary type migrations for methods and constructors