Add reflection convenience methods, fix hadoop1 compat.
Initial test with a hadoop dependency dependency.