add default attribute accessor (like Hash has it)