added support for constants in workspaceToJSON
edited constructors.addVal

added support for constant values
changed indents in constructors to 2 spaces