Add option to specify rank on joinGroup() and Fix Bug with JSON array from from context setting