Recursive transaction support is added

This patch is needed for the #261 to be fixed.