Fixed type inference for types, which have methods with same name in package object.