fixes #3465 Find count not updated after log submission; also fixes broken logging for EC after changed login method
refactoring: cache singletons
fix #3499: exception when parsing bad coordinates
fix #3500: crash with `null` completion in lazy lists

Also, add tests for `LazyInitializedList`.
refactoring: remove bad default case statements

For methods returning directly from the switch case, at least Eclipse
still needs a useless return value outside of the switch statement. This
has been handled by IllegalStateExceptions after the switch.
optimization: do not merge a cache against itself

During the process of saving a cache, it will be merged against the
version present in CacheCache if any. Quite often, the version in
CacheCache is the cache object itself, and a merge is attempted against
itself.
remove bad throw statement