Implemented correct z-order of models within canvases when invisible
models become visible after changing views.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>