Fixed bug, dsfmt now works with arrays