Add boolean and negative integer support; fix warning in test case