code cleanup and fixed typos
LinearRingField now resets state when re-used