Fix for #20 - only uses 'value' as element value if it's the only peice
of data