sphere() and lights() bug

someone found out that my new sphere() code (introduced in rev0067) doesn’t work properly when using lights(). another reference test case and an interim fix is available from this thread.