Impleted dict decode support. Now encode needs to be fixed so that it can handle dict more gracefully.