[vector-api] Make canvas immediate API support zIndex

This PR makes it possible to control the ordering of features/geometries when using the immediate API.