Analysis for confusing use of variables.

This fixes #19.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>