Added is_packed() check, can now pass in packed grammars.