Add tests for any.clear() and workaround Intel issue in tests (refs #6999)