Pin association key types as scalars