[NUCCORE-1209] Adapted patch (updating coding conventions) from Kaarel
Kann for caching constructor of SingleFieldId. Added TODO for other
caching.
return from clear if isEmpty
[NUCCORE-1208] Patch from Kaarel Kann to use LinkedHashMap instead of
HashMap. Very minimal (if any) performance change