Makefile: add proper dependencies for all core files
add Tuple nreverse (reverse in-place), PN_SIZE t->len

tuple indices are throughout PN_SIZE not unsigned long, so shorten the range also