NUCCORE-1246 Fix for method reflection of declared methods

http://www.datanucleus.org/servlet/jira/browse/NUCCORE-1246