ScalarCodec fix
StaticIf - needed for standard types