Fix #853 "Case with two `xforms-case-begin-…` elements"
Move XFormsCaseHandler to Scala