Added ObjectQuery and refactored generic method invocation.
Refcatored generic method handling and added initial support for EntityFramework ObjectQuery