BUG-1425: fix builder's implementation of equals()