refactor v-ref, allow use in child templates, fix #636