Fix merging statements with datatype.
Fix: detect duplicate statements when merging.
Add rdf module test suite.
Add make target for running unit tests.