class library: jitlib: fix init when reshaping is 'expanding'