Simple APIs: add support for reading local values and arrays

Created by: williamfgc

Basically, enable SetBlockSelection in read.