Fix AttributeManager.create to accept dtype-compatible strings