improved jvm type parsing logics