Implement $1..N and rework $', $", $` and $& gvars #128, #627.