port onchanges to API 8.0 to fix #22

@yvaucher I don't know off the top of my head. In any case, ping me if I can help.