Improve automatic message generation for function properties