keep named partials ahead of expressions and avoid jitter

this has also makes named partials stick until they are re-rendered (like the old behavior) even if they no longer exist in the partials map
fixes #1231