Bug 1000839: Fixes and unit tests for NfcUtils.encodeNDEF()

Will add more meaningfull name. It was short for "payload length array".