Add test for reflection.packages().
Add test for reflection.classes().

With trivial bug fixes.
Add test for reflection.class_info().
Add test for reflection.package_info().
Improve cache behaviour.
Improve cache behaviour.