Replace latchStoreRetained with a flag per loop which is properly maintained at execute, analyse and analyseLoop points.
More bugfixes; printf now builds with sharing enabled.
Add support for rebuilding calls where function pointer trickery would result in a wrong-arity call.