Fixed missing package if only method use the package
Fixed generated getter/setter for private objects