Was returning arrayrefs for no reason
Prevent warning in case handle_entity gets undef from Z<>
Require nested delimiters to match quantity as well
More thorough entity testing