Small fixes, mainly in throws signatures

Small refactoring changes: removed redundant throws clauses, small preformance improvements: string concatenation replaced by chained StringBuffer:append methods; passing proper array size in Collection:toArray methods.