More overloading conflict fixes

Also fixed some doc issues and some modern Perl "package Foo {}" syntax in tests.