Fix #19 Add RegisterByRef