Fixes ast_entry's swap to swap comments as well.

Also adds ast unit testing and equality operators.