We are consistent with old behavior.
If a config expect a integer, then short, int, long are valid; double, float are invalid.