What I'm wondering is whether this can be done in the other direction, to get the length of the original plaintext data given the ciphertext.
RC5 is a block cipher; what you're asking about is about the block cipher mode (and what padding that implementation uses); there isn't enough information to answer your specific question; however I do have a guess.
A "block cipher" is an invertible transform from an n-bit bitstring (in this case, $n=64$) to an n-bit bitstring. What a "block cipher mode" does is that the "block cipher" and uses it in a way to make a more generally useful operation, for example, encrypting an arbitrary length plaintext.
Now, glancing at the code, it would appear that the code uses "ECB mode" to encrypt the string (which is generally a bad choice - of course, that's not your problem). With "ECB mode", the mode itself can only handle plaintexts that are a multiple of the block length (in this case, 16 bytes) in length. Because we generally want to handle arbitrary length plaintexts, what we do is add "padding", that is, some extra stuff at the end to make the length a multiple of 16 bytes in length (which the mode can then handle).
This padding is designed in a way to make removing the padding at decryption time easy - however there are several possibilities and the decrypt code you gave doesn't tell us which one is being used. In the most common mode, the very last byte is used to signify the number of padding bytes that were added - you might want to see if that's the case in your examples.