Fixed handling of binaries

@dbu @lsmith77: is there a reason for the strange

````
$object->{'propertyName'} = $value;
$object->{':propertyName'} = $type;
````

notation? It would have been more convenient if it were an array `$object->{$name} = array('value' => $value, 'length' => $length', 'type' => $type)` or even have an objects representing the node and properties in this transitional state.