Disable libvips cache for unit tests

Aids memory leak detection
Less C, more C++ e.g. namespace, enum class

Improve image reference handling