Fix package for LegacyObjectInputStream

This was defined with a package java.util, but the file lived in the avian package.  So I just changed the package declaration, added the needed imports, and fixed compiler warnings for generics in this file.