Fix fetching of value when object is passed

Resolves: #3
Convert markers to array if object is passed to setMakers

Resolves: #4