Previously it returned 32 bytes for all types, which was wasteful. This commit changes it to return the storage bytes of the underlying type.