Change the way separators are handled (fix #87)

Node.js return different instances of a module if it is called from
different path. This make it very unreliable to use instanceof, so we now
instead check for a property type to be equal to "separator"