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
Merge pull request #1232 from evs-chris/gh-1231

keep named partials ahead of expressions and avoid jitter