Added support for multiple BFI_Thumb declarations

Added checks to remove redeclaration errors. If multiple BFI_Thumb
scripts are included, the latest script version is automatically used