Add scalar dependencies test for jbzip2

Found out quickly that one of the variables was being created outside
the loop and was shared. It was easy to unshare it by creating a new one
inside.

See #54.