Svg extern bitmap & svg node count limit

Rebased #356 and #360 on coolwanglu:incoming.