Added ability to handle nodes with multiple labels.

I've added the ability to handle nodes with multiple labels. Currently such nodes generated an incorrect cypher query.