Ensure #public_hash ignores private methods