Rvar scheduling

Adds a test and a fix for a crash found when splitting previously fused RVars (fixes #463).