How to return a list of objects of type 'mytype' from a plugin

@mishav explains the problem quite well, but for a rundown of the details of the misery this can cause, see my recent post here:

Essentially if a list of such things is returned, these JSON datatypes and the values that they contain become “read only”.