Just compiled it with BANano 1.27 (my current unreleased work version) and except for a B4J error in your code (b = bo, where b is not dimmed) and moving the addcssfile and addjavascriptfile to Appstart as the error in the log says you should do (header can only be used in AppStart), it compiled just fine.
@Kiffi reported this nested problem last week, gave me a very simple 20 line project that reproduced the problem and it was solved under an hour. You are making an already 50+ classes library (an undertaking never been done with BAnano), so basic BANano bugs will be multiplied several times too and make it very hard to find the culprit. As I said, patience...