cffdump: misc fixes
tests-3d: add occlusion query test

contributed by HdkR