Here you are. Better done using events, but this is abit trickier since the changing of the viewpoint doesnt generate events on its own.
For case 1 (boolean array to number returns 1 for true/falste, 0 for false/false, 2 for false/true and 3 for true/true) just wire another pair of inputs (refnum and cluster) to the property node. Default does nothing.
Hope that helped!