Fix issue with asVersion not setting properly

When looping through multiple `$directProps` values, `$result` will not be set correctly after the first pass.

Potential fix for issue #8