fix bugs in reference counting
add debug symbols to .so
An empty intmap is not single. This shouldn't error
minor cleanups
add support for intersections
fix wrongly passing prefixes as masks