Bug Fixes to Technologies Planning

Several minor bug fixes relating to zero division errors and empty
matrices and eval statements.