adds min_vXX macros and caches the version lookups.

 - Since Contexts and CmdQueues are created en masse we need to cleanup after them.
use min_v in events
use min_v in buffer.jl