nil is now its own type
add beg, low, upp
move tests.js to main branch