What error do you get using the transpose function?
For pitchbend values see the midi spec Or :
https://sites.uci.edu/camp2014/2014/04/30/managing-midi-pitchbend-messages/#:~:text=The MIDI protocol specifies that,16,383 means maximum upward bend. The relationship between the pitchbend value and the number of semitone or cents is I believe dependent on the synthesizers implementation.
Good question, the meta message doesn't contain a reference to the tick of it's related event or the event itself. I would suggest that you try building a list of all metaevents in the target track and increment a pointer with each metamessage received to the appropriate item in the list. You could create a custom type to hold additional information such as the tick value or if the message is actually a text or lyric message or both if necessary as you need it
Were you running in Debug mode?