Fixed serialization of variables in proper+ compiler print_all/1.

Newly introduced variables weren't serialized correctly in print_all/1.
Proper+ compiler generates better is_<sort>().