add beqz support

The previous implementation would rely on the beq instruction to compare
values to 0 instead of using the beqz instruction.
Merge branch 'beqz' into dev