All Rust commits from Facepunch
Improve base splitting - filter out external TCs and small structures so it only exports proper bases