LibMerlin bugfix curtesy of Simon
Range-printing factorisation and fix