fix #86

added a check in the annotate helper to detect if it is a property of the function's prototype