fix compile error
test null pointer using negation
rewrite any.swap with std.swap