improve value comparison for hasRecord matcher (for boolean values)