Simple MongoDB document to class mapping for Perl