Properly support valuetypes in slots