fixes for test cases under ARC, fix apng decoder logic under ARC, disable tests that are not required when feature is disabled